<?php
/**
 * Created by PhpStorm.
 * User: forvoid
 * Date: 5/3/2017
 * Time: 10:17 AM
 */
$str='abc';
    $needle= 'b';
    $pos = strpos($str, $needle);
    var_dump($pos);
    print_r($pos);
$keyword = trim("          你好大家好");
var_dump($keyword);
$result = "";
if (!strpos($keyword,"Hello")||strpos(!$keyword,"你好")){
    $result = "你好！很高兴为你服务";
}else
    if (!strpos($keyword,"学校")){
        $result = "重庆邮电大学";
    }else{
        $result = $keyword;
    }
var_dump( $result);
?>